package com.ve;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class frameVistaGeneralGasto extends javax.swing.JFrame {
	private JPanel panPrincipalGasto;
	private JLabel lblDesc;
	private JLabel lblRgoMax;
	private JButton btnContinuar;
	private JButton btnRegGasto;
	private JComboBox cmbTipo;
	private JTextField txtRgoMax;
	private JLabel lblRgoMin;
	private JTextField txtRgoMin;
	private JLabel lbltipo;
	private JTextField txtDesc;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public frameVistaGeneralGasto() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panPrincipalGasto = new JPanel();
				getContentPane().add(panPrincipalGasto, BorderLayout.CENTER);
				panPrincipalGasto.setPreferredSize(new java.awt.Dimension(552, 264));
				panPrincipalGasto.setLayout(null);
				{
					lblDesc = new JLabel();
					panPrincipalGasto.add(lblDesc);
					lblDesc.setText("Descripcion:");
					lblDesc.setBounds(167, 27, 70, 22);
				}
				{
					txtDesc = new JTextField();
					panPrincipalGasto.add(txtDesc);
					txtDesc.setBounds(278, 26, 85, 23);
				}
				{
					lbltipo = new JLabel();
					panPrincipalGasto.add(lbltipo);
					lbltipo.setText("Tipo: ");
					lbltipo.setBounds(167, 70, 70, 16);
				}
				{
					txtRgoMin = new JTextField();
					panPrincipalGasto.add(txtRgoMin);
					txtRgoMin.setBounds(278, 105, 83, 23);
				}
				{
					lblRgoMin = new JLabel();
					panPrincipalGasto.add(lblRgoMin);
					lblRgoMin.setText("Rango Minimo: ");
					lblRgoMin.setBounds(167, 112, 85, 16);
				}
				{
					lblRgoMax = new JLabel();
					panPrincipalGasto.add(lblRgoMax);
					lblRgoMax.setText("Rango Maximo: ");
					lblRgoMax.setBounds(167, 153, 86, 16);
				}
				{
					txtRgoMax = new JTextField();
					panPrincipalGasto.add(txtRgoMax);
					txtRgoMax.setBounds(278, 150, 83, 23);
				}
				{
					ComboBoxModel cmbTipoModel = 
							new DefaultComboBoxModel(
									new String[] { "Fijo", "Extraordinario" });
					cmbTipo = new JComboBox();
					panPrincipalGasto.add(cmbTipo);
					cmbTipo.setModel(cmbTipoModel);
					cmbTipo.setBounds(278, 67, 83, 23);
				}
				{
					btnRegGasto = new JButton();
					panPrincipalGasto.add(btnRegGasto);
					btnRegGasto.setText("Registrar Gasto");
					btnRegGasto.setBounds(167, 266, 93, 23);
				}
				{
					btnContinuar = new JButton();
					panPrincipalGasto.add(btnContinuar);
					btnContinuar.setText("Continuar");
					btnContinuar.setBounds(278, 266, 87, 23);
					btnContinuar.addMouseListener(new MouseAdapter() {
						public void mouseClicked(MouseEvent evt) {
							System.out.println("btnContinuar.mouseClicked, event="+evt);
							txtDesc.setEnabled(false);
							txtRgoMin.setEnabled(false);
							txtRgoMax.setEnabled(false);
							cmbTipo.setEnabled(false);
							txtDesc.setText(null);
							txtRgoMax.setText(null);
							txtRgoMin.setText(null);
							
						}
					});
				}
			}
			pack();
			this.setSize(568, 381);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
